package com.xrc.t1;
/**
 * 小狗  子类
 * @author
 * @email
 */
public class Dog  extends Animal{
    private String strain;
    Integer age;

    public Dog() {
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }
    public void catchThief(String thief){
        System.out.println("抓住小偷"+thief);
        return ;
    }
    public void show(){
        int age=4;

        System.out.println("年龄1"+this.age);
        System.out.println("年龄2"+super.age);
        System.out.println("年龄4"+age);

    }
}
